package com.embracesource.monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gnerv.pabu.basic.core.entity.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 基础平台-服务器表
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-09-03
 */
@Data
@TableName("monitor_database")
public class Database extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 业务主键
     */
    @TableId(value = "uk_id", type = IdType.NONE)
    private String ukId;

    /**
     * 数据库名称
     */
    private String name;
    private String department;
    private String project;
    private String responsible;

    /**
     * 数据库类型
     */
    private String type;

    /**
     * 数据库IP
     */
    private String ip;

    /**
     * 数据库CPU
     */
    private String cpu;

    /**
     * 数据库IO
     */
    private String io;

    /**
     * 数据库连接数
     */
    private String connection;

    private String node;
    private String port;
    private String grafana;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

}
